
Page({
  data: {
    background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
    ingUrl: [
      {
        title: 'introduce/data.png',
        center: 'introduce/pic01.png',
        tip: 'introduce/001a.png'
      },
      {
        title: 'introduce/enjoy.png',
        center: 'introduce/pic02.png',
        tip: 'introduce/002a.png'
      },
      {
        title: 'introduce/join.png',
        center: 'introduce/pic03.png',
        tip: 'introduce/003a.png'
      },
      {
        title: 'introduce/trade.png',
        center: 'introduce/pic04.png',
        tip: 'introduce/004a.png'
      }
    ],
    currentPage: 0,
    indicatorDots: false,
    vertical: false,
    autoplay: false,
    circular: false,
    interval: 2000,
    duration: 500,
    previousMargin: 0,
    nextMargin: 0
  },
  tipChange: function (e) {
    let currentPage = e.detail.current;
    this.setData({
      currentPage: currentPage
    })
  },
  // changeProperty: function (e) {
  //   var propertyName = e.currentTarget.dataset.propertyName
  //   var newData = {}
  //   newData[propertyName] = e.detail.value
  //   this.setData(newData)
  // },
  // changeIndicatorDots: function (e) {
  //   this.setData({
  //     indicatorDots: !this.data.indicatorDots
  //   })
  // },
  // changeAutoplay: function (e) {
  //   this.setData({
  //     autoplay: !this.data.autoplay
  //   })
  // },
  // intervalChange: function (e) {
  //   this.setData({
  //     interval: e.detail.value
  //   })
  // },
  // durationChange: function (e) {
  //   this.setData({
  //     duration: e.detail.value
  //   })
  // }
})